# -*- coding: utf-8 -*-

from odoo import models, fields, api


class wliotProduct(models.Model):
    _name = 'wliot.product'

    name = fields.Char(string=u'阀门名称')
    valve_type = fields.Char(string=u'阀门型号')
    specification = fields.Char(string=u'规格')
    ppm_type_id = fields.Many2one('wliot.ppm.type', string=u'介质')
    instruction = fields.Char(string=u'说明书')
    material = fields.Char(string=u'材质')
    ultimate_use_temp = fields.Float(string=u'极限使用温度', digits=(16, 1))
    ultimate_use_humi = fields.Float(string=u'极限使用湿度', digits=(16, 1))
    limit_detection_range = fields.Float(string=u'极限检测范围', digits=(16, 1))
    top_limit = fields.Float(string=u'上限', digits=(16, 1))
    bottom_limit = fields.Float(string=u'下限', digits=(16, 1))
    ppm_calibration = fields.Float(string=u'PPM校准值', digits=(16, 1))
    ppm_alarm = fields.Float(string=u'PPM预警值', digits=(16, 1))
    temp_calibration = fields.Float(string=u'温度校准值', digits=(16, 1))
    temp_alarm = fields.Float(string=u'温度预警值', digits=(16, 1))
